package com.github.jiangxch.rpc.transport;

import com.github.jiangxch.rpc.serialization.Serializer;

import java.net.InetSocketAddress;

/**
 * @author: jiangxch
 * @date: 2021/2/20 11:07
 */
public interface Transporter {
    Server bind(InetSocketAddress address, ChannelHandler channelHandler, Serializer serializer);
    
    Client connect(InetSocketAddress address, ChannelHandler channelHandler, Serializer serializer);
}
